<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>自我--信息查询</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/me.css">

    <link href="${pageContext.request.contextPath}/bootstrap460/css/bootstrap.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/jQuery/jquery-3.6.0.js"></script>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/hui/lib/layer/2.4/skin/layer.css" />
    <script src="${pageContext.request.contextPath}/hui/lib/layer/2.4/layer.js"></script>

</head>
<div class="ui container" id="tableStu">
    <div class="ui attached pointing menu">
        <div class="ui container">
            <div class="right menu">
                <span href="#" class="teal item">个人信息</span>
            </div>

        </div>
    </div>
    <div class="m-container-small m-padded-tb-large">
        <div class="ui container">
            <form class="ui form">
                <input type="hidden" name="publish">
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">学号</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Key}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">姓名</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text" >${stu.stu_Name}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">权限</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.root}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">专业</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Major}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">性别</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Sex}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">学院</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_College}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="two fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">地址</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Address}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">联系方式</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text" >${stu.stu_Tel}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">入学日期</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Enr}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">出生日期</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Birth}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">政治面貌</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${stu.stu_Polit}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="required field">
                    <div class="ui left action labeled input">
                        <label class="ui compact teal bsic label">密码</label>
                        <input type="password" value="${stu.password}" style="color:darkgray;cursor:pointer;"  readonly>
                    </div>

                </div>
                <a class="btn btn-info" href="${pageContext.request.contextPath}/student/normal/stuUpdateSelfView?Stu_Key=${stu.stu_Key}&Stu_Name=${stu.stu_Name}&Stu_Sex=${stu.stu_Sex}&Stu_Enr=${stu.stu_Enr}&Stu_Birth=${stu.stu_Birth}&Stu_College=${stu.stu_College}&Stu_Major=${stu.stu_Major}&Stu_Polit=${stu.stu_Polit}&Stu_Address=${stu.stu_Address}&Stu_Tel=${stu.stu_Tel}&password=${stu.password}"><i class="fa fa-pencil" aria-hidden="true"/>修改</a>
            </form>
        </div>
        <br/>
        <br/>
    </div>
</div>


<div class="ui container" id="tableUser">
    <div class="ui attached pointing menu">
        <div class="ui container">
            <div class="right menu">
                <span href="#" class="teal item">个人信息</span>
            </div>

        </div>
    </div>
    <div class="m-container-small m-padded-tb-large">
        <div class="ui container">
            <form class="ui form">
                <input type="hidden" name="publish">
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">工号</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${user.userId}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">姓名</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text" >${user.userName}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">权限</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text" >${user.root}</div>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="required field">
                    <div class="ui left action labeled input">
                        <label class="ui compact teal bsic label">密码</label>
                        <input type="password" value="${user.password}" style="color:darkgray;cursor:pointer;"  readonly>
                    </div>

                </div>
            </form>
        </div>
        <br/>
        <br/>
    </div>
</div>

<div class="ui container" id="tableEmp">
    <div class="ui attached pointing menu">
        <div class="ui container">
            <div class="right menu">
                <span href="#" class="teal item">个人信息</span>
            </div>
        </div>
    </div>
    <div class="m-container-small m-padded-tb-large">
        <div class="ui container">
            <form class="ui form">
                <input type="hidden" name="publish">
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">工号</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${emp.emp_Id}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">姓名</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text" >${emp.emp_Name}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">性别</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${emp.emp_Sex}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">负责范围</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${emp.build_id}号楼</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">联系电话</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${emp.emp_Tel}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="three fields required" style="margin-bottom: 50px">
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">年龄 </label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${emp.emp_Age}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">职位</label>
                            <div class="ui fluid selection dropdown">
                                <div class="default text">${emp.emp_Job}</div>
                            </div>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left action labeled input">
                            <label class="ui compact teal bsic label">家庭住址</label>
                            <input type="text" value="${emp.emp_Add}" style="color:darkgray;cursor:pointer;"  readonly>
                        </div>
                    </div>
                </div>

                <div class="field">
                    <div class="ui left action labeled input">
                        <label class="ui compact teal bsic label">密码</label>
                        <div class="ui fluid selection dropdown">
                            <div class="default text" >${emp.password}</div>
                        </div>
                    </div>
                </div>
                <a class="btn btn-info" href="${pageContext.request.contextPath}/student/normal/empUpdateSelfView?Emp_Id=${emp.emp_Id}&Emp_Name=${emp.emp_Name}&Emp_Sex=${emp.emp_Sex}&Emp_Age=${emp.emp_Age}&build_id=${emp.build_id}&Emp_Job=${emp.emp_Job}&Emp_Add=${emp.emp_Add}&Emp_Tel=${emp.emp_Tel}&Emp_Des=${emp.emp_Des}&password=${emp.password}"><i class="fa fa-pencil" aria-hidden="true"/>修改</a>
            </form>
        </div>
        <br/>
        <br/>
    </div>
</div>
<script>
    var code=${requestScope.code};
    if (code == "1"){
        document.getElementById("tableStu").style.display="none";
        document.getElementById("tableEmp").style.display="none";
    }else if (code == '2'){
        document.getElementById("tableUser").style.display="none";
        document.getElementById("tableStu").style.display="none";
    }else {
        document.getElementById("tableUser").style.display="none";
        document.getElementById("tableEmp").style.display="none";
    }
</script>
</body>
</html>
